package com.chijun.mform.create.mode;

import com.chijun.mform.FormBuilder;
import com.chijun.mform.create.fragment.FormAddProcessFragment;
import com.example.ccj.u.sqlite.TableName;

/**
 * 审批节点对应的审批人
 * @author 驰珺
 * whechat   : chijun9
 * create at : 2024/11/17 20:17
 */
@TableName(FormBuilder.TABLE_FORM_APPROVE_PROCESS_PERSON_NAME)
public class FormApprovePerson implements Comparable<FormApprovePerson>{
    public FormApprovePerson(){}

    //审批节点编号
    public long processId;
    //审批人id
    public String personId;
    //审批人名称
    public String  personName;
    //审批意见
    public String  opinion;
    //审批图片
    public String  image;
    //开始审批时间
    public String startTime;
    //审批完毕时间
    public String endTime;
    //审批状态 0：等待  1：正在审批  2：审批通过  3：审批拒绝  4：转交 5:评论
    public int state = FormAddProcessFragment.SHEN_PI_STATE_DENG_DAI;
    //备注
    public String note;


    //根据状态倒序排序
    @Override
    public int compareTo(FormApprovePerson o) {
        return o.state - this.state;
    }


    @Override
    public String toString() {
        return "FormApprovePerson{" +
                "processId=" + processId +
                ", personId='" + personId + '\'' +
                ", personName='" + personName + '\'' +
                ", state=" + state +
                '}';
    }
}
